<?php

namespace app\index\model;

use think\Model;

class BidModel extends Model
{

    protected $table = 'newzs_bid';

    protected $pk = 'id';

    static public function get_bond_type()
    {
        return [
            1 => '转账',
            2 => '保函'
        ];
    }


    /**
     * @param int $id
     * @return array|null|string|Model
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function get_info_by_pk($id=0){
        return self::where(['id'=>$id])->find();
    }
}








